package com.wangshouyu.mp.offiaccount;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import com.wangshouyu.mp.base.response.BaseResponse;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * @author 王守钰
 * @date 2020年12月07日 13:29
 * @description 客服信息
 */
public class AccountList extends BaseResponse implements Serializable {

    /**
     * 客服列表
     */
    @SerializedName(value = "kf_list")
    @JsonProperty(value = "kf_list")
    @JSONField(name = "kf_list")
    private List<AccountInfo> accounts;

    public List<AccountInfo> getAccounts() {
        return accounts;
    }

    public void setAccounts(List<AccountInfo> accounts) {
        this.accounts = accounts;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AccountList that = (AccountList) o;
        return Objects.equals(accounts, that.accounts);
    }

    @Override
    public int hashCode() {
        return Objects.hash(accounts);
    }

    @Override
    public String toString() {
        return "AccountList{" +
                "accounts=" + accounts +
                '}';
    }
}
